<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
    <script>

        var user = {
            name: 'zs',
            age: 20
        }

        // 1.对象解构赋值
        const {name , age } = user;
        console.log(name, age); // zs 20


    </script>
</body>
</html>